﻿using System.Windows.Controls;
using System.Windows.Media.Imaging;
using CharacterCreation.Views.Contracts;
using CharacterCreation.Data.Models;

namespace CharacterCreation.Views {
    public partial class SkillCharacterSkillDetailsView : BaseView {

        public SkillCharacterSkillDetailsView() {
            InitializeComponent();
            this.ViewModel = new SkillCharacterSkillDetailsViewModel();
            this.HeaderText = "Character skill details";
            this.ViewImage = new BitmapImage(new System.Uri("/CharacterCreation;component/Images/ctron_toets_32.png", System.UriKind.RelativeOrAbsolute));
        }

        /// <summary>
        /// The currently selected character skill
        /// </summary>
        public CharacterSkill CharacterSkill {
            get { return (this.ViewModel as SkillCharacterSkillDetailsViewModel).CharacterSkill; }
            set { (this.ViewModel as SkillCharacterSkillDetailsViewModel).CharacterSkill = value; }
        }
    }
}
